package com.colin.datamove.entity;

import java.util.Date;
import java.util.List;

public class DepartmentModel extends MoveFlag {
    private static final long serialVersionUID = 1609823542312377826L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 部门编码
     */
    private String departmentCode;

    /**
     * 部门编码集合
     */
    private List<String> departmentCodeList;

    /**
     * 部门名称
     */
    private String departmentName;

    /**
     * 上级部门id
     */
    private Long parentDepartmentId;

    /**
     * 一级公司id
     */
    private Long rootCompanyId;

    /**
     * 所属公司id
     */
    private Long companyId;

    /**
     * 部门状态 0：可用 1：不可用
     */
    private Integer status;

    /**
     * 数据状态
     */
    private Integer dataStatus;

    /**
     * 创建时间
     */
    private Date cdate;
    /**
     * 更新时间
     */
    private Date mdate;

    /**
     * outType 外部类型
     */
    private Integer outType;

    /**
     * outDepartmentId 外部部门id
     */
    private String outDepartmentId;

    /**
     * order 次序id
     */
    private Long departmentOrder;

    /**
     * 设置部门主管uids
     */
    private List<Long> userIds;

    /**
     * 目标方法调用来源 0：用户调用  1：钉钉事件同步调用
     */
    private Integer targetSourceType;

    private String outDepartCode;

    public String getOutDepartCode() {
        return outDepartCode;
    }

    public void setOutDepartCode(String outDepartCode) {
        this.outDepartCode = outDepartCode;
    }

    public DepartmentModel() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public Long getParentDepartmentId() {
        return parentDepartmentId;
    }

    public void setParentDepartmentId(Long parentDepartmentId) {
        this.parentDepartmentId = parentDepartmentId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDataStatus() {
        return dataStatus;
    }

    public void setDataStatus(Integer dataStatus) {
        this.dataStatus = dataStatus;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getRootCompanyId() {
        return rootCompanyId;
    }

    public void setRootCompanyId(Long rootCompanyId) {
        this.rootCompanyId = rootCompanyId;
    }

    public Date getCdate() {
        return cdate;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }

    public Date getMdate() {
        return mdate;
    }

    public void setMdate(Date mdate) {
        this.mdate = mdate;
    }

    public Integer getOutType() {
        return outType;
    }

    public void setOutType(Integer outType) {
        this.outType = outType;
    }

    public String getOutDepartmentId() {
        return outDepartmentId;
    }

    public void setOutDepartmentId(String outDepartmentId) {
        this.outDepartmentId = outDepartmentId;
    }

    public Long getDepartmentOrder() {
        return departmentOrder;
    }

    public void setDepartmentOrder(Long departmentOrder) {
        this.departmentOrder = departmentOrder;
    }

    public List<Long> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<Long> userIds) {
        this.userIds = userIds;
    }

    public Integer getTargetSourceType() {
        return targetSourceType;
    }

    public void setTargetSourceType(Integer targetSourceType) {
        this.targetSourceType = targetSourceType;
    }

    public List<String> getDepartmentCodeList() {
        return departmentCodeList;
    }

    public void setDepartmentCodeList(List<String> departmentCodeList) {
        this.departmentCodeList = departmentCodeList;
    }

}
